gdk: Remove a redundant check
authorMatthias Clasen <mclasen@redhat.com>
Thu, 4 Feb 2021 05:29:51 +0000 (00:29 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 4 Feb 2021 05:29:51 +0000 (00:29 -0500)
We already know desktop_notification_id is not NULL.

Pointed out in https://www.viva64.com/en/b/0793/

gdk/gdk.c

index 953079cdd54c4f62034e676015e1724e1d4404d4..a0938af58a9301c995cdc219d63b8d116e1078b3 100644 (file)
--- a/gdk/gdk.c
+++ b/gdk/gdk.c
@@ -173,7 +173,7 @@ stash_desktop_startup_notification_id (void)
       if (!g_utf8_validate (desktop_startup_id, -1, NULL))
         g_warning ("DESKTOP_STARTUP_ID contains invalid UTF-8");
       else
-        startup_notification_id = g_strdup (desktop_startup_id ? desktop_startup_id : "");
+        startup_notification_id = g_strdup (desktop_startup_id);
     }
 
   /* Clear the environment variable so it won't be inherited by